home *** CD-ROM | disk | FTP | other *** search
- cmath.doc
- CMATH.C DOCUMENTATION
-
- This package is Calhoun's CLOGS.C + CTRIG.C, with minor
- improvements & additions by PM Krasno, 17813 Kiowa Trail,
- Los Gatos CA 95030, 408-353-1287. The addition is a
- square-root function (fpsqrt). The improvements are:
- 1. Moving general constants to float.h and series
- expansion coefficients to coef.h
- 2. Miscellaneous small rearrangements
- 3. Rewriting all polynomial expansions in the form
- (...(c[n] * x + c[n-1]) * x + ... +c[1]) * x + c[0]
- which saves one multiplication per coefficient
- 4. Eliminating roundoff tests in the polynomial loops.
- The speed improvement seems to be about 25 to 30%;
- specifically, for 241 evaluations (including loop overhead,
- on a 2.5MH Z80) sine was reduced from 132 seconds to 92 and
- log10 from 93 sec to 62 sec.
-
-
- sec to 62 sec.
-
- #fo n&